import axios from "../plugin/http4audit";

export function getAccessToken(payload) {
  return axios
    .post("/audit/getAccessToken", {
      "header": {
        "sysCode": "VOTE_SERVICE",
        "platform": window.navigator.platform,
        "timestamp": new Date().getTime()
      },
      "payload": {
        "account": payload.account,
        "password": payload.password
      }
    })
}
